package com.csw.fish;

import java.awt.*;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2022/11/15 13:30
 */
public class Bg {


    void paintSelf(Graphics g,int fishLevel){
            g.drawImage(GameUtils.bgImg, 0, 0, null);
            switch (GameWin.state){
                case 0:
                    GameUtils.drawWord(g, "开始", Color.red, 80, 350, 500);

                    break;
                case 1:
                    GameUtils.drawWord(g, "积分:"+GameUtils.score, Color.ORANGE, 50, 200, 120);
                    GameUtils.drawWord(g, "难度:"+GameUtils.level, Color.ORANGE, 50, 600, 120);
                    GameUtils.drawWord(g, "等级"+fishLevel, Color.ORANGE, 50, 1000, 120);
                    break;
                case 2:
                    GameUtils.drawWord(g, "积分:"+GameUtils.score, Color.ORANGE, 50, 200, 120);
                    GameUtils.drawWord(g, "难度:"+GameUtils.level, Color.ORANGE, 50, 600, 120);
                    GameUtils.drawWord(g, "等级"+fishLevel, Color.ORANGE, 50, 1000, 120);
                    GameUtils.drawWord(g, "失败", Color.red, 100,700,500);
                    break;
                case 3:
                    GameUtils.drawWord(g, "积分:"+GameUtils.score, Color.ORANGE, 50, 200, 120);
                    GameUtils.drawWord(g, "难度:"+GameUtils.level, Color.ORANGE, 50, 600, 120);
                    GameUtils.drawWord(g, "等级"+fishLevel, Color.ORANGE, 50, 1000, 120);
                    GameUtils.drawWord(g, "胜利", Color.red, 80, 700, 500);
                case 4:
                    break;
                default:
            }

    }
}
